package com.demo.mykotlin.activity

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.demo.mykotlin.R
import kotlinx.android.synthetic.main.activity_all_finish.*

/**
 * 页面全部退出
 */
class AllFinishActivity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_all_finish)

        outLoginBtn.setOnClickListener {
            //发送自定义动态广播
            val intent = Intent("com.demo.mykotlin.FORCE_OFFLINE")
            sendBroadcast(intent)
        }
    }
}
